#ifndef _ALIGNTARGET_H
#define _ALIGNTARGET_H
#include "main.hpp"
 #define EXTC  0
namespace imgProc {
namespace align_target {

 
//�����
typedef struct
{
	uint16_t x;
	uint16_t y;
} st_pixle;

typedef struct
{
	float_t x;
	float_t y;
} st_pixle_f;
//�˶���
typedef struct
{
							//�϶���  0shu'j
							
							//�¶���
							
							//�󶥵�
							
							//�Ҷ���

	
	
							//���󶥵�
							
							//���Ҷ���
							
							//���󶥵�
							
							//���Ҷ���   7
	
	float x[8];
	float y[8];
	
} st_doublequad_pixle;

//�Ķ���
typedef struct
{
	//����1
	
	//����2
	
	//����3
	
	//����4
	float x[4];
	float y[4];
	
	float average_x;
	float average_y;
	float average_dis;
    float variance;//����
} st_quad_pixle;

#define ALIG_W 188
#define ALIG_H 120
void SobelAutoThreshold2(unsigned char (*imgIn)[ALIG_W], unsigned char (*imgOut)[ALIG_W],float thresh);
uint8_t find_quads(unsigned char (*imgIn)[ALIG_W], float thresh,st_quad_pixle * final_quad,bool visualization);

}
}
#endif